﻿using System;
using System.Text;
using System.Timers;

namespace Environment_Updater {
    class World {
        static Airport airport = new Airport();

        private static void UpdateWorld(object source, ElapsedEventArgs e) {
            airport.UpdatePlanes();
        }

        public static void Main() {
            Timer worldTimer = new Timer(1000);
            worldTimer.Elapsed += new ElapsedEventHandler(UpdateWorld);
            worldTimer.Start();

            Console.ReadLine(); // Pause
        }
    }
}
